﻿
<!DOCTYPE html>
<html xmlns:wb="http://open.weibo.com/wb">
<head>
    <title>呷饭网</title>
    <meta name="description" content="呷饭网" />
    <meta name="keywords" content="呷饭网" />
    <meta name="copyright" content="www.sweetwill.com" />
    <script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>
    @*    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />*@
    <link href="@Url.Content("~/Content/skin1/homepage.css")" rel="stylesheet" /> 
    <link href="@Url.Content("~/Content/style.css")" rel="stylesheet" type="text/css" />
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script src="~/Scripts/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" src="~/scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
    <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
     <script language="javascript" src="http://webapi.amap.com/maps?v=1.3&key=6f8865b2771b70d90e610a0d6861227b"></script>
    <script src="~/Scripts/mustache.js"></script>
    <script src="~/Scripts/Template.js"></script>
    <link href="~/Scripts/imgshow/thickbox.css" rel="stylesheet" />
    <script src="~/Scripts/imgshow/thickbox.js"></script>
    @{
        var cityName = "";
        if (Session["cityName"] != null)
        {
            cityName = Session["cityName"].ToString();
        } 
        <script>
            $(function () {
                $("form").Validform({
                    tiptype:3
                }); 
                $('.sectSere').click(function () {
                    if ($(this).hasClass('more2')) {
                        $(this).removeClass('more2');
                        $(this).siblings('.hidden').hide();
                    }
                    else {
                        $(this).addClass('more2');
                        $(this).siblings('.hidden').show();
                    }
                }); 
                if ('@cityName' == "") {
                    showCityInfo(); 
                } else {
                    $("#city").html("@cityName");
                }  
            }); 
            function showCityInfo() {
                //加载城市查询插件
                AMap.service(["AMap.CitySearch"], function() {
                    //实例化城市查询类
                    var citysearch = new AMap.CitySearch();
                    //自动获取用户IP，返回当前城市
                    citysearch.getLocalCity(function(status, result) {
                        if (status === 'complete' && result.info === 'OK') {
                            if (result && result.city && result.bounds) {
                                var cityinfo = result.city;
                                var citybounds = result.bounds;
                                $("#city").html(cityinfo); 
                            }
                        } else { 
                            $("#city").html(result.info);
                        }
                    });
                });
            }
        </script> 
        Session["cityName"] = cityName;
        }
</head>
<body>
    <header>
        <div id="header">
            <div class="topbar">
               
                @Html.Partial("_UserLogin")
            </div>
        </div>
    </header>
    <div id="content">
        @RenderSection("featured", required: false)

        @RenderBody()

        @RenderSection("Scripts", false)
    </div>
    <footer>

        <div id="footer">
            @Html.Partial("_footer")
        </div>
    </footer>
</body>
</html>
